package com.patzn.osgi.blueprint.hello;

/**
 * @name: Product
 * @description: Product
 * @author: jiangcs
 */
public class Product {
    private String name;
    private Type type;

    public void init() {
        System.out.println("init: " + this);
    }

    public void destroy() {
        System.out.println(this.name + " destroy");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Product{" +
                "name='" + name + '\'' +
                ", type=" + type +
                '}';
    }
}
